package bank.model.vo;


/**
 * 
 * @author Andrei Glazunov
 *
 */
public class Department
{
	protected int id;
	private String name;
	
	protected Department() {
	}
	
	protected Department(String name) {
		this();
		this.name = name;
	}
	
	public Department(int id, String name)	{
		this(name);
		this.id = id;		
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;		
	}
	
	public int getId() {
		return id;		
	}
	
	public void setId(int id) {
		this.id = id;		
	}
	
	public String toString() {
		return name + "(id: "+ String.valueOf(id)+")";		
	}
	

}
